package com.tusuo.stds;

import android.os.Environment;

import java.io.File;

/**
 * @author J.Huang
 * @version 1.0
 */

public class Constants {
    // 测试服务器
//    public static final String ENDPOINT = "http://tstest.pptzb.com/";
    // 生产服务器
    public static final String ENDPOINT = "http://api.shua.tusuo100.com/";

//    public static final String QUESTION_PAGE_TEMPLATE = "http://www.fjcode.com/slider/demo/";
    public static final String QUESTION_PAGE_TEMPLATE = "http://www.tusuo100.com/appviews/index.html";

    public static final String WEB_PAGE_FIND_HOST = "http://www.tusuo100.com/";
    public static final String WEB_PAGE_FIND = WEB_PAGE_FIND_HOST + "cmsView/views/index.html";

    public static final String WECHAT_APP_ID = "wx0ff5c5bca88b6d72";
    public static final String QQ_APP_ID = "1105825787";

    public static final String KEY_COOKIE = "cookie";
    public static final String KEY_AVATAR = "avatar";

    public static final String KEY_SIMILARITY_QUESTION_DATE = "similarity";

    public static final String AVATAR_FILE = Environment.getExternalStorageDirectory() + File.separator + Environment.DIRECTORY_DOWNLOADS + File.separator + "stds_avatar.jpg";

    public static final String THIRD_AVATAR_FILE = Environment.getExternalStorageDirectory() + File.separator + Environment.DIRECTORY_DOWNLOADS + File.separator + "third_avatar.jpg";

    public static final class PATH {
        public static final String API_GET_APP_INFO = "/AppApi/Common/AppInfo";
        public static final String API_GET_VERIFY_CODE = "/AppApi/User/GetVerifyCode";
        public static final String API_REGISTER = "/AppApi/User/Register";
        public static final String API_LOGIN = "/AppApi/User/Login";
        public static final String API_LOGOUT = "/AppApi/User/Logout";

        public static final String API_THIRD_LOGIN = "/AppApi/User/ThirdLogin";
        public static final String API_THIRD_BIND_EXIST = "/AppApi/User/BindExist";
        public static final String API_THIRD_BIND_NOT_EXIST = "/AppApi/User/BindNotExist";
        public static final String API_THIRD_BIND_CURRENT = "/AppApi/User/BindCurrent";
        public static final String API_THIRD_UNBIND = "/AppApi/User/UnBind";

        public static final String API_SET_PASSWORD = "/AppApi/User/SetPassword";
        public static final String API_MODIFY_PASSWORD = "/AppApi/User/ModifyPassowrd";
        public static final String API_SET_AVATAR = "/AppApi/User/SetHeadImg";
        public static final String API_SET_SCHOOL = "/AppApi/User/SetSchool";
        public static final String API_SET_GENDER = "/AppApi/User/SetGender";
        public static final String API_SET_NAME = "/AppApi/User/SetName";
        public static final String API_GET_USER_INFO = "/AppApi/User/GetUser";
        public static final String API_SET_MOBILE_NUM = "/AppApi/User/SetMobilePhone";
        public static final String API_SET_OPEN_SIMILARITY = "/AppApi/User/SetOpenSimilarity";


        public static final String API_UPLOAD = "/AppApi/Common/Upload";
        public static final String API_GET_SUBJECT = "/AppApi/Common/Subject";
        public static final String API_GET_AREA = "/AppApi/Common/GetArea";
        public static final String API_GET_SCHOOL = "/AppApi/Common/GetSchoolByArea";
        public static final String API_COMMIT_SUGGEST = "/AppApi/Common/Suggest";


        public static final String API_GET_SCENE_LIST = "/AppApi/Game/GetSceneList";
        public static final String API_GET_SCENE_RANK = "/AppApi/Rank/SceneRank";
        public static final String API_GET_SCENE_DETAIL = "/AppApi/Game/GetSceneDetail";
        public static final String API_SCENE_SET_HIDDEN = "/AppApi/Game/SetHidden";
        public static final String API_SCENE_SET_SORT_INDEX = "/AppApi/Game/SetSceneSortIndex";


        public static final String API_GET_MODULE_LIST = "/AppApi/Game/GetModuleList";
        public static final String API_GET_MODULE_RANK = "/AppApi/Rank/ModuleRank";

        public static final String API_GET_LEVEL_LIST = "/AppApi/Game/GetLevelList";
        public static final String API_GET_LEVEL_DETAIL = "/AppApi/Game/GetLevelDetail";
        public static final String API_SUBMIT_ANSWER = "/AppApi/Game/SubmitAnswer";

        public static final String API_GET_LEVEL_RESULT = "/AppApi/Game/GetLevelResult";
        public static final String API_GET_LEVEL_RECORD_LIST = "/AppApi/Game/GetLevelRecordList";
        public static final String API_GET_LEVEL_RECORD_DETAIL = "/AppApi/Game/GetLevelRecordDetail";

        public static final String API_GET_QUESTION_BANK_LIST = "/AppApi/Question/GetWrongLib";
        public static final String API_GET_QUESTION_BANK_GROUP = "/AppApi/Question/GetWrongLibGroup";
        public static final String API_GET_QUESTION_BANK_CONTENT = "/AppApi/Question/GetWrongQuestion";
        public static final String API_GET_WRONG_QUESTION_SETTING = "/AppApi/Question/GetWrongSetting";
        public static final String API_SET_WRONG_QUESTION_SETTING = "/AppApi/Question/SetWrongSetting";
        public static final String API_SUBMIT_WRONG_QUESTION_ANSWER = "/AppApi/Question/SubmitWrongAnswer";
        public static final String API_REMOVE_WRONG_QUESTION = "/AppApi/Question/Remove";

        public static final String API_GET_SIMILARITY_INFO = "/AppApi/Game/GetSimilarityInfo";
        public static final String API_GET_SIMILARITY_DETAIL = "/AppApi/Game/GetSimilarityDetail";
        public static final String API_SUBMIT_SIMILARITY_ANSWER = "/AppApi/Game/SubmitSimilarityAnswer";

        public static final String API_GET_COMPLETE_QUESTION = "/AppApi/Game/GetCompleteQuestionDetail";
        public static final String API_SUBMIT_COMPLETE_QUESTION = "/AppApi/Game/SubmitCompleteAnswer";
        public static final String API_GET_COMPLETE_QUESTION_RESULT = "/AppApi/Game/GetCompleteResult";
        public static final String API_GET_COMPLETE = "/AppApi/Game/GetComplete";
        public static final String API_GET_COMPLETE_DETAIL = "/AppApi/Game/GetCompleteDetail";

        public static final String API_GET_SCENE_UNLOCK_ATTACH_DATA = "/AppApi/Pay/PayScene";
        public static final String API_GET_PAY_PARAM = "/AppApi/Pay/GetPayParam";
        public static final String API_GET_SCENE_REWARD_ATTACH_DATA = "/AppApi/Pay/Reward";
        public static final String API_GET_VIP_LIST = "/AppApi/Pay/GetVipList";
        public static final String API_PAY_FOR_VIP = "/AppApi/Pay/PayVip";

        public static final String API_GET_CATALOG_LIST = "/AppApi/CMS/GetCatalogList";
        public static final String API_GET_ARTICLE_LIST = "/AppApi/CMS/GetArticleList";

    }

    public static final int ACTIVITY_REQUEST_GENERAL = 10000;
    public static final int ACTIVITY_RESULT_RELOAD = 20000;

    public static final int CODE_COMPLETE_TYPE_SCENE = 1;
    public static final int CODE_COMPLETE_TYPE_MODULE = 2;
    public static final int CODE_COMPLETE_TYPE_LEVEL = 3;

    public static final class PLATFORM {
        public static final String WECHAT = "10";
        public static final String QQ = "20";
        public static final String WEIBO = "30";
    }

}
